﻿using System;
using System.Collections.Generic;
using System.Data.Objects.DataClasses;
using System.Linq;
using System.Text;

namespace Chapter6Classes
{
	public sealed class NorthwindModelDefinedFunctions
	{
		[EdmFunction("NorthwindModel", "OrderDetailTotal")]
		public static Decimal OrderDetailTotal(Order_Details orderDetails)
		{
			throw new NotSupportedException("OrderDetailTotal can be used only in Linq2Entities query");
		}
	}
}
